package com.draemoncode.weixindb.conventer;


import com.draemoncode.weixindb.constant.MessagePackageTypeConstant;
import com.draemoncode.weixindb.constant.UIMessageTypeConstant;

public class MessageTypeConventer {

    public static Integer toUIType(Integer cMessagePackageType){
        if(MessagePackageTypeConstant.REQUEST_SHANG_ZHUANG.equals(cMessagePackageType)){
            return UIMessageTypeConstant.SHANG_ZHUANG;
        }else if(MessagePackageTypeConstant.REQUEST_XIA_ZHU.equals(cMessagePackageType)){
            return UIMessageTypeConstant.XIA_ZHU;
        }else if(MessagePackageTypeConstant.REQUEST_QIANG_HONG_BAO.equals(cMessagePackageType)){
            return UIMessageTypeConstant.QIANG_HONG_BAO;
        }
        return null;
    }

}
